package cn.sxt.users.pojo;

import java.util.Date;

public class Admins {
	private Integer id;
	private Integer roleId;
	private String email;
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	private String password;
	private String trueName;
	private String phone;
	private String qq;
	private Byte status;
	private Date createTime;
	private Date updateTime;
	private Date lastLoginTime;
	private String statusStr;
	
	public String getStatusStr() {
		POJOEnum[] pojoEnums=POJOEnum.values();
		for (int i = 0; i < pojoEnums.length; i++) {
			POJOEnum pojoEnum=pojoEnums[i];
			if(pojoEnum.toString().startsWith("STATUS_")
					&& pojoEnum.getStatus()==this.getStatus()){
				this.statusStr=pojoEnum.getName();
			}
		}
		return statusStr;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public Byte getStatus() {
		return status;
	}
	public void setStatus(Byte status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}	
}
